<html>
<body>
<?php
if($data==NUll){
	echo "<h2> Data Empty </h2>";
}
else{
	echo "<table>
			<tr>
			 <td>id</td>
			 <td>title</td>
			 </tr>";
	foreach($data as $item){
		echo "<tr>";
		echo "<td>".$item['Book']['id']."</td>";
		echo "<td><a hrel='books/view/".$item['Book']['id']."'>".$item['Book']['title']."</a></td>";
		echo "</tr>";
	}

}
?>
</body>
</html>
